#!/bin/bash 

function sum()
{
    s=0
    s=$[$1+$2]
    echo $s
}

read -p "please type first num:" num1
read -p "please type second num:" num2

sum $num1 $num2
